package com.tpp.threat_perception_platform.service;

import com.tpp.threat_perception_platform.param.AssetsParam;
import com.tpp.threat_perception_platform.param.HotfixParam;
import com.tpp.threat_perception_platform.param.MyParam;
import com.tpp.threat_perception_platform.param.ThreatParam;
import com.tpp.threat_perception_platform.pojo.Host;
import com.tpp.threat_perception_platform.response.ResponseResult;

public interface HostService {
    /**
     * 保存主机信息
     * @param host
     * @return
     */
    public int saveHost(Host host);

    /**
     *主机列表
     * @param param
     * @return
     */
    ResponseResult hostList(MyParam param);

    /**
     * 删除用户
     * @param ids
     * @return
     */
    ResponseResult delete(Integer[] ids);

    /**
     * 根据mac地址更新主时间
     * @param host
     * @return
     */
    public int updateHostByMacAddress(Host host);

    /**
     * 资产发现
     * @param param
     * @return
     */
    public ResponseResult assetsDiscovery(AssetsParam param);

    /**
     * 资产发现
     * @param param
     * @return
     */
    public ResponseResult threatDiscovery(ThreatParam param);
    /**
     * 补丁发现
     * @param param
     * @return
     */
    public ResponseResult hotfixDiscovery(HotfixParam param);

    ResponseResult<?> list();
    ResponseResult updateLogSyncStatus(String macAddress, Integer status);

//    ResponseResult sendLogSyncMessage(String macAddress, Integer status);
    ResponseResult logSync(String macAddress);
}
